#include "foo.hpp"

int foo(int x) {
    if (x <= 0) return 0;
    return x + foo(x - 1);
}